package io.renren.modules.web.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 试题(题库)
 * 
 * @author chensixiang
 * @email chensixiang1234@gmail.com
 * @date 2021-08-29 16:56:05
 */
@Data
@TableName("t_testquestion")
public class TestquestionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	@TableField(exist = false)
	private String categoryName;
	/**
	 * 分类id
	 */
	private Long categoryId;
	@TableField(exist = false)
	private String courseName;
	/**
	 * 课程id
	 */
	private Long courseId;
	/**
	 * 类型(选择 填空 问答)
	 */
	private String type;
	/**
	 * 问题
	 */
	private String question;
	/**
	 * 答案
	 */
	private String answer;
	/**
	 * 分数
	 */
	private Integer score;
	/**
	 * 录入人
	 */
	private String input;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
